package com.zebraphp.devtool.util;

import android.content.Context;
import android.media.MediaPlayer;
import com.zebraphp.devtool.R;
import java.io.IOException;

/**
 * Created by Administrator on 2018/4/2.
 */

public class IMusic {
    private static MediaPlayer player;

    public static void newMsg(Context context) {
        if (player == null) {
            player = MediaPlayer.create(context, R.raw.msg);
            try {
                player.prepare();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
        player.start();
    }
}
